import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String a = in.next();
		String b = in.next();
		in.close();
		System.out.println(multiply(a,b));
	}
	
	static String multiply(String a,String b){
		String temp = "";
		for(int i=a.length()-1;i>=0;i--){
			temp = add(temp,multiply(a.charAt(i),b,a.length()-1-i));
		}
		return temp;
	}
	
	static String multiply(char c,String b,int tag){
		int len = b.length();
		char[] temp = new char[len+tag+1];
		int ip = 0;
		for(int i=len-1;i>=0;i--){
			char cb = b.charAt(i);
			int res = multiply(c,cb,ip);
			if(res>=10){
				ip = res/10;
				res %= 10;
			}
			else ip=0;
			temp[i+1] = (char)(res+48);
		}
		for(int i=len+1;i<=len+tag;i++){
			temp[i]=(char)(0+48);
		}
		if(ip>0){
			temp[0] =(char)(ip+48);
			return new String(temp);
		}
		else
			return new String(temp,1,len+tag);
		
	}
	private static int multiply(char c, char cb,int ip) {
		int ic = c-48;
		int icb = cb-48;
		
		return ic*icb+ip;
	}

	static String add(String a,String b){
		if(a.equals(""))
			return b;
		
		int lena = a.length();
		int lenb = b.length();
		
		
		String minstr = lena>lenb?b:a;
		String maxstr =  lena>lenb?a:b;
		
		char[] temp = new char[maxstr.length()+1];
		int tmax = maxstr.length()-1;
		int tmin = minstr.length()-1;
		int tp = maxstr.length();
		int ip = 0;
		
		for(int i=minstr.length();i>0;i--){
			char cmax = maxstr.charAt(tmax);
			char cmin = minstr.charAt(tmin);
			int res = add(cmax,cmin,ip);
			if(res >= 10) {
				res-=10;
				ip=1;
			}
			else ip=0;
			temp[tp]=(char) (res+48);
			tp--;
			tmax--;
			tmin--;
		}
		
		for(int i=maxstr.length()-minstr.length();i>0;i--){
			int res = add((char)(ip+48),maxstr.charAt(tmax),0);
			if(res >= 10) {
				res-=10;
				ip=1;
			}
			else ip=0;
			temp[tp] = (char)(res+48);
			
			tp--;
			tmax--;
		}
		if(ip==0){
			return new String(temp,1,maxstr.length());
		}
		else{
			temp[0] = '1';
			return new String(temp);
		}
	}
	
	static int add(char ca,char cb,int ip){
		int a = ca - 48;
		int b = cb - 48;
		return a+b+ip;
	}
}
